#!/bin/bash
npm run build

PROCESS_NAME="frida_server_connect.mjs"

# 检测进程是否已运行
if pgrep -fl "node.*${PROCESS_NAME}" | grep -v $$ > /dev/null; then
  echo "[!] ${PROCESS_NAME} 已在运行，跳过执行"
  exit 0
fi

node frida_server_connect.mjs
